import { Address } from "../address/type";
import { BasePageReq, BasePageResp, BaseParam, UserInfo } from "../base";

export interface ExpressTakeReq extends BasePageReq {
  status?: number;
  payStatus?: number;
  sexLimit?: number;
  deliveryTime?: number;
  type?: number;
  orderBy?: string;
}

export interface ExpressTakeResp extends BasePageResp {
  records: ExpressTake[]
}

export interface ExpressTake extends BaseParam, UserInfo {
  userId?: number;
  bizNo?: string;
  address: Address;
  price: number;
  amount: number;
  bounty: number;
  sexLimit: number;
  sexLimitName?: string;
  deliveryTimeName?: string;
  deliveryTime: number;
  remark?: string;
  status?: number;
  payStatus?: number;
  payTime?: string;
  expressTakeDetails?: ExpressTakeDetail[];
}

export interface ExpressTakeDetail extends BaseParam {
  expressTakeId?: number;
  expressStation: string;
  expressStationName?: string;
  type: string;
  price: number;
  picture?: string;
  pictureArr?: string[];
  takeCode?: string;
}

export interface ExpressTakeOrder extends BaseParam {
  expressTakeId?: number;
  orderNo: string;
  status: number;
  price: number;
  payStatus: number;
  payTime?: string;
  payMethod?: string;
  remark?: string;
}